package thread;

/**
 * 主线程
 */
public class CurrentThreadDemo {
    public static void main(String[] args) {
        Thread main = Thread.currentThread();
        System.out.println(main);
        dosome();
    }

    public static void dosome(){
        Thread t = Thread.currentThread();
        System.out.println("运行dosome的方法的线程是"+t);
    }
}
